##
## Makefile
## 
## Made by mathieu attal
## Login   <mathieu.attal@gmail.com>
## 
##

CC = gcc

NAME = CouchFS

SRC =	main.c			\
		CouchFS.c

OBJ = $(SRC:.c=.o)

RM = rm -rf

CFLAGS = -Wall -pedantic -D_FILE_OFFSET_BITS=64 -D__FreeBSD__=10 -DFUSE_USE_VERSION=26 `curl-config --cflags`

LDFLAGS = -lfuse `curl-config --libs`

$(NAME) : $(OBJ)
	$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)

all : $(NAME)

clean :
	$(RM) $(OBJ)

fclean : clean
	$(RM) $(NAME)
